/**
 * ourcarlife
 */
package com.whilefor.runner.modules.runner.entity;

import com.whilefor.runner.modules.sys.entity.Office;
import com.whilefor.runner.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.whilefor.runner.common.persistence.DataEntity;

/**
 * 跑腿兄弟管理Entity
 * @author lins
 * @version 2016-04
 */
public class RunnerRunner extends DataEntity<RunnerRunner> {
	
	private static final long serialVersionUID = 1L;
	private Office office;		// 归属部门
	private User user;		// 账号
	private String runnerName;		// 名称
	private Date runnerAge;		// 生日
	private String runnerSex;		// 性别
	private String runnerStar;		// 星级
	private String runnerPhone;		// 联系电话
	private String state;		// 工作状态
	private String runnerInfo;		// 介绍
	private Integer runnerOrderMax;		// 最大天接单量
	
	public RunnerRunner() {
		super();
	}

	public RunnerRunner(String id){
		super(id);
	}

	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=100, message="名称长度必须介于 0 和 100 之间")
	public String getRunnerName() {
		return runnerName;
	}

	public void setRunnerName(String runnerName) {
		this.runnerName = runnerName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRunnerAge() {
		return runnerAge;
	}

	public void setRunnerAge(Date runnerAge) {
		this.runnerAge = runnerAge;
	}
	
	@Length(min=0, max=6, message="性别长度必须介于 0 和 6 之间")
	public String getRunnerSex() {
		return runnerSex;
	}

	public void setRunnerSex(String runnerSex) {
		this.runnerSex = runnerSex;
	}
	
	@Length(min=0, max=11, message="星级长度必须介于 0 和 11 之间")
	public String getRunnerStar() {
		return runnerStar;
	}

	public void setRunnerStar(String runnerStar) {
		this.runnerStar = runnerStar;
	}
	
	@Length(min=0, max=20, message="联系电话长度必须介于 0 和 20 之间")
	public String getRunnerPhone() {
		return runnerPhone;
	}

	public void setRunnerPhone(String runnerPhone) {
		this.runnerPhone = runnerPhone;
	}
	
	@Length(min=0, max=6, message="工作状态长度必须介于 0 和 6 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=4000, message="介绍长度必须介于 0 和 4000 之间")
	public String getRunnerInfo() {
		return runnerInfo;
	}

	public void setRunnerInfo(String runnerInfo) {
		this.runnerInfo = runnerInfo;
	}
	
	public Integer getRunnerOrderMax() {
		return runnerOrderMax;
	}

	public void setRunnerOrderMax(Integer runnerOrderMax) {
		this.runnerOrderMax = runnerOrderMax;
	}
	
}